var scrollFunc = function (e) {
    e = e || window.event;
    // var t1 = document.getElementById("wheelDelta");
    // var t2 = document.getElementById("detail");
    if (e.wheelDelta) { //IE/Opera/Chrome 
        console.log(e.wheelDelta);
    } else if (e.detail) { //Firefox 
        console.log(e.detail);
    }
}
/*注册事件*/
if (document.addEventListener) {
    document.addEventListener('DOMMouseScroll', scrollFunc, false);
} //W3C 
window.onmousewheel = document.onmousewheel = scrollFunc; //IE/Opera/Chrome